import request from '@/utils/request'

// 查询盾构机生产商列表
export function listManufacturer(query) {
  return request({
    url: '/tbm/manufacturer/list',
    method: 'get',
    params: query
  })
}

// 查询盾构机生产商详细
export function getManufacturer(id) {
  return request({
    url: '/tbm/manufacturer/' + id,
    method: 'get'
  })
}

// 新增盾构机生产商
export function addManufacturer(data) {
  return request({
    url: '/tbm/manufacturer',
    method: 'post',
    data: data
  })
}

// 修改盾构机生产商
export function updateManufacturer(data) {
  return request({
    url: '/tbm/manufacturer',
    method: 'put',
    data: data
  })
}

// 删除盾构机生产商
export function delManufacturer(id) {
  return request({
    url: '/tbm/manufacturer/' + id,
    method: 'delete'
  })
}
